﻿using YAPACS.BusinessObjects.Managements.Devices;

namespace YAPACS.RisServer.Abstractions;

public interface IDeviceService
{
    /// <summary>
    /// 如果只有一个设备，则获取设备
    /// </summary>
    /// <param name="deviceTypeId">设备类型Id</param>
    /// <returns></returns>
    Task<Device> GetDeviceIfOnlyOneAsync(Guid? deviceTypeId = null);

    /// <summary>
    /// 获取设备选择项
    /// </summary>
    /// <returns></returns>
    Task<IList<Device>> GetDevicesAsync();

    /// <summary>
    /// 获取设备选择项
    /// </summary>
    /// <param name="deviceTypeId">设备类型Id</param>
    /// <returns></returns>
    Task<IList<Device>> GetDevicesAsync(Guid deviceTypeId);
}
